<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $user_id 用户id
 * @property int $status 发放0否1是
 * @property string $amount 金额
 * @property string $start_at 
 * @property string $end_at 
 * @property string $remark 
 * @property string $deleted_at 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class FastappChannelAgentSettlement extends MineModel
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'fastapp_channel_agent_settlement';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'user_id', 'status', 'amount', 'start_at', 'end_at', 'remark', 'deleted_at', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'status' => 'integer', 'amount' => 'decimal:2', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
